﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Web.Security;
using Login.Controller;



namespace Login.GUILayer
{
    public partial class CreateUserGUI : Form
    {
        public CreateUserGUI()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }
        

        private void button1_Click(object sender, EventArgs e)
        {

            

            UserCtr uctr = new UserCtr();
            String fName = txtFirstName.Text;
            String lName = txtLastName.Text;
            String address = txtAddress.Text;
            int zipCode = Int32.Parse(txtZipCode.Text);
            String city = txtCity.Text;
            String licensPlate = txtLicensPlate.Text;
            String phoneNumber = txtPhoneNumber.Text;
            String email = txtEmail.Text;
            String userName = txtUserName.Text;
            String password = txtPassword.Text;
            int rank = Int32.Parse(txtRank.Text);
            uctr.createUser(fName, lName, address, zipCode, city, licensPlate, phoneNumber, email, userName, password, rank);
                

            }
            
            
            

    
        }
    }

